package com.gexiaobao.pigeon.ui.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.gexiaobao.pigeon.R
import com.gexiaobao.pigeon.app.base.DataBindBaseViewHolder
import com.gexiaobao.pigeon.app.model.bean.VisitReservationResponse
import com.gexiaobao.pigeon.databinding.ItemVisitReservationBinding

/**
 * @Author      : hxw
 * @Date        : 2024/6/5 10:23
 * @Describe    :
 */
class VisitReservationAdapter(data: ArrayList<VisitReservationResponse.ListBean>) :
    BaseQuickAdapter<VisitReservationResponse.ListBean, DataBindBaseViewHolder>(
        R.layout.item_visit_reservation, data
    ) {
    override fun convert(holder: DataBindBaseViewHolder, item: VisitReservationResponse.ListBean) {
        val binding = DataBindBaseViewHolder.getBinding(holder) as ItemVisitReservationBinding
        binding.data = item
        binding.executePendingBindings()//防止列表抖动

    }
}